<?php 
	$importOptions = ClassRegistry::getObject($importModelAlias)->getImportFieldsAsOtpions();
?>
<?php if(isset($requiredFieldsNotPresent) && count($requiredFieldsNotPresent) > 0){?>
	<div class="errorMsg">
		<?php echo __("You need to link following fields. Without these fields data cannot be imported!")?>
		<ul>
			<?php foreach($requiredFieldsNotPresent as $requiredFieldNotPresent){?>
				<li>
					<?php echo $importOptions[$requiredFieldNotPresent]?>
				</li>
			<?php }?>
		</ul>
	</div>
<?php }?>
<?php

echo $form->create($importModelAlias,array("url"=>"/".$this->params['url']['url']));
?>
<?php foreach($headers as $headerKey => $headerLabel){?>
	<?php Echo $form->input("$importModelAlias.fields.$headerKey",array('empty'=>__("-None-"),"options"=>$importOptions,'label'=>sprintf(__('"%s" Maps to:'),$headerLabel)))?>
<?php }?>
<?php 
	echo $form->end(__("Save"));
?>